local skynet = require "skynet"
local agentbase = require "agentbase"
local filename = "agent.lua"

local Agent = agentbase:new({})

function Agent:init()
	self:add_eventbyname("cmd", "agentmgrmsg/agentcmd")
	---加入message
	local eventfuncs = require("agentmgrmsg/agentmessage")
	for messagename, deal in pairs(eventfuncs) do
		self.eventpool[messagename] = deal
	end
	eventfuncs.service = self
end


skynet.start(function()
	Agent:start()
end)